﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace Vit.Web.Models
{
    public class Tag
    {
        [Key]
        [StringLength(50)]
        [Required]
        public string Name { get; set; }
        public long Hits { get; set; }
        [StringLength(50)]
        public string Creator { get; set; }
        public DateTime CreateDate { get; set; }
        public bool Deleted { get; set; }

        public virtual ICollection<TagObject> Objects { get; set; } 
    }
}
